<template>
       <div :dataList="dataList">
        <el-dialog title="开始用车" :visible.sync="cancelApply">
          <!-- <div class="backg">
            <div>申请人信息</div>
            <div class="left-right">
              <div>姓名：{{ this.list.creatorName }}</div>
              <div>部门：{{ this.list.deptName }}</div>
              <div>联系电话：{{ this.list.phone }}</div>
              <div>用车理由：{{ this.list.marks }}</div>
            </div>
            <div class="left-right">
              <div>车牌号码：{{ this.list.carNumber }}</div>
              <div>
                用车时段：{{ this.list.startTime }} ~ {{ this.list.endTime }}
              </div>
              <div>随行人数：{{ this.list.peopleNumber }}</div>
              <div>目的地：{{ this.list.destination }}</div>
            </div>
          </div>
          <el-form :model="form">
            <el-form-item class="fontSize"><span>*车辆当前里程数：</span>
              <el-input  v-model="form.mileage" style="width:240px;" autocomplete="off"></el-input><span> 公里</span>
            </el-form-item>
               <el-form-item class="fontSize">
                 <span>*车辆当前油表数：</span>
              <el-input  v-model="form.oil" style="width:240px" autocomplete="off"></el-input><span> 升</span>
            </el-form-item>
                <el-form-item class="fontSize">
                 <span>*车辆当前里程油表数拍照：</span>
            </el-form-item>
          </el-form> -->
          <div slot="footer" class="dialog-footer">
            <el-button @click="open">取 消</el-button>
            <el-button @click="temporary">临时</el-button>
            <el-button type="primary" @click="open">确 定</el-button>
          </div>
          <!-- close -->
        </el-dialog>
      </div>
</template>
<script>
/* eslint-disable */
import mixinViewModule from "@/mixins/view-module";
import minFormValidate from "@/mixins/form-validate";
import getUse from "./getUse.vue"
import tableTemplate from "@/components/table-template";
import Search from "@/components/search/search";
export default {
  mixins: [mixinViewModule, minFormValidate],
  data() {
    return {
      mixinViewModuleOptions: {
        deleteImgURL: "",
        getDataListURL: "", // 数据列表接口，API地址
        getDataListIsPage: true, // 数据列表接口，是否需要分页？
        addURL: "", // 添加或修改接口，API地址
        updateURL: "", // 添加或修改接口，API地址
        getDataInfoURL: "", // 数据详情，API地址
        deleteURL: "", // 删除接口，API地址
        deleteIsBatch: true, // 删除接口，是否需要批量？
        exportURL: "", // 导出接口，API地址
      },
      cancelApply: false,
      dataList: [],
    };
  },
  components: { tableTemplate, Search,getUse },
  mounted() {  
   },
  methods: {
    // async temporary(){
    // this.dataList = await this.addOrUpdateItem({ url: this.mixinViewModuleOptions.updateURL})
    
    // },
     temporary(){
      console.log(list,1,this.list);
    },
    open() { 
      if (this.cancelApply == false) {
        this.cancelApply = true;
      } else {
        this.cancelApply = false;
      }
    },
  },
};
</script>
<style lang="scss" scoped>
</style>
